using System;
using System.Collections.Generic;
using System.Text;
using WCSFContrib.ECommerceCatalog.Product.Services;
using WCSFContrib.ECommerceCatalog.BusinessEntities;

namespace WCSFContrib.ECommerceCatalog.Product.Tests.Fakes
{
    public class FakeCategoriesService : ICategoriesService
    {
        public List<Category> Categories = new List<Category>();

        #region ICategoriesService Members

        public ICollection<BusinessEntities.Category> AllCategories
        {
            get { throw new Exception("The method or operation is not implemented."); }
        }

        public ICollection<BusinessEntities.Category> AllParentCategories
        {
            get { throw new Exception("The method or operation is not implemented."); }
        }

        public BusinessEntities.Category GetCategoryById(int categoryId)
        {
            return Categories.Find(delegate(Category category) { return category.CategoryId == categoryId; });
        }

        public ICollection<BusinessEntities.Category> GetSubCategories(int categoryId)
        {
            throw new Exception("The method or operation is not implemented.");
        }

        #endregion
    }
}
